package com.zhixianggou.caibaobox.commons.openFeignApi;

import com.zhixianggou.caibaobox.commons.result.ReturnData;
import com.zhixianggou.caibaobox.user.dto.UserDto;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zyq
 * 8/15/24 3:37 PM
 */
//@FeignClient("cloud-user-service")
public interface UserApi {

    @RequestMapping("/user/register")
    public ReturnData register(@RequestBody UserDto dto);

    @RequestMapping("/user/getUserInfo/{userId}")
    public ReturnData getUserInfo(@PathVariable("userId") Integer userId);

    @RequestMapping("/user/delUser/{userId}")
    public ReturnData delUser(@PathVariable("userId") Integer userId);

    @RequestMapping("/user/banUser/{userId}")
    public ReturnData banUser(@PathVariable("userId") Integer userId);

    @RequestMapping("/user/circuitTest/{id}")
    public ReturnData circuitTest(@PathVariable("id") Integer id);

    @RequestMapping("/user/circuit/bulkhead/{id}")
    public ReturnData circuitBulkHeadTest(@PathVariable("id") Integer id);

    @RequestMapping("/user/circuit/rateLimiter/{id}")
    public ReturnData circuitRateLimiterTest(@PathVariable("id") Integer id);
}
